package com.oms.app.user.model;

import java.util.Date;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import com.oms.base.JSONDateTimeSerializer;

/**
 * TUSER表对应实体
 * @author Loong_Mit
 * @date Sep 1, 2012 12:30:07 PM
 */

public class User {
	private Integer id;
	private String name = "";
	private String regname = "";
	private String password = "";
	private Integer status = 1;
	private Date locktime;
	private String email = "";
	private Date createtime;
	private String admin = "";
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRegname() {
		return regname;
	}
	public void setRegname(String regname) {
		this.regname = regname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	@JsonSerialize(using=JSONDateTimeSerializer.class)
	public Date getLocktime() {
		return locktime;
	}
	public void setLocktime(Date locktime) {
		this.locktime = locktime;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	@JsonSerialize(using=JSONDateTimeSerializer.class)
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		if (createtime == null) {
			this.createtime = new java.util.Date();
		} else {
			this.createtime = createtime;
		}
	}
	public String getAdmin() {
		return admin;
	}
	public void setAdmin(String admin) {
		this.admin = admin;
	}
}